
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//$sql="select FullName from Staff where Staff_ID=$Staff_ID";
//$query1=$this->db->query($sql);

        echo '<table id="box-table-a" cellspacing="1" align="right" width="900px">';
        //foreach ($query1->result() as $row1)
        //{
        $bar="List Family of <strong>".$Name."</strong>";//$FullName;
        echo '<tr><td colspan=5 align=right class=bar>'.$bar.'</td></tr>';
        
        //}        

        echo '
              <th>Relative</th>
              <th>Full Name</th>
              <th>Gender</th>
              <th>Birthday</th>
              <th>Action</th>';
        foreach($query->result() as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        <td class=\"row10\">$row->Relative</td>
                        <td class=\"row12\">$row->FullName</td>
                        <td class=\"row10\">$row->Gender</td>
                        <td class=\"row12\">$row->DOB</td>";
            $titleUpdate = '<img src ="'.base_url().'templates/images/icons/edit.gif" title="Click here to modify"/>';
            $titleDelete = '<img src ="'.base_url().'templates/images/icons/delete.png" title="Click here to delete" onclick="return checkLink();"/>';
            //$titleActive = '<img src ="'.base_url().'application/templates/images/icons/active.jpg" title="Click here to active"/>';
            //$titleView = '<img src ="'.base_url().'templates/images/icons/view.gif" height=25 title="Click here to view "/>';
            //$titleInsertFamily = '<img src ="'.base_url().'templates/images/icons/insert_family.jpeg" width=40 height=25 title="Click here to insert family"/>';
            $FS_ID=$row->Family_ID."-".$Staff_ID;
            $update = anchor("staff/loadFamilyUpdateForm/$FS_ID",$titleUpdate);
            
            $delete = anchor("staff/deleteFamily/$FS_ID",$titleDelete);
            //$active = anchor("user/loadConfirmForm/$row->Staff_ID",$titleActive);
            //$view_staff=anchor("staff/viewInformationStaff/$row->Staff_ID",$titleView);
            //$insert_family=anchor("staff/loadFormInsertFamily/$row->Staff_ID",$titleInsertFamily);
            echo "<td class=\"row12\" align=\"center\">$update $delete</td></tr>";
            /*}
            $titleInsert = '<img src ="'.base_url().'templates/images/icons/addstaff.jpeg" width=60 height=40 title="Click here to insert staff"/>';
            $insert = anchor("staff/loadInterviewerPass",$titleInsert);
            echo '<tr><td colspan=5 align=center>'.$insert.'</td></tr>';
            echo '<tr><td colspan=5 align=right class=pagination>'.$pagination.'</td></tr>';*/
            }
            $titleInsertFamily = '<img src ="'.base_url().'templates/images/icons/insert_family.jpeg" width=40 height=25 title="Click here to insert family"/>';
            $insert_family=anchor("staff/loadFormInsertFamily/$Staff_ID",$titleInsertFamily);
            //$experience = anchor("staff/loadFormInsertExperience/$Staff_ID",$titleExperience);
            $titleback = '<img src ="'.base_url().'templates/images/icons/back.jpg" width=40 height=25 title="Back"/>';
            $back = anchor("staff/index",$titleback);
            
            echo '<tr><td colspan=5 align=center>'.$insert_family. $back.'</td></tr>';
        echo '</table>';
?>
